package only.my.railgunys.artifact.imp;

import only.my.railgunys.artifact.ArtifactSuitEffect;
import only.my.railgunys.bean.Character;

/**
 * 炎之魔女
 * 默认4件套触发一次
 */
public class CrimsonWitch implements ArtifactSuitEffect {
    int times;
    public CrimsonWitch(){
        this.times = 1;
    }
    public CrimsonWitch(int times){
        this.times = Math.min(times,3);
    }
    @Override
    public Character setEffect2Piece(Character character) {
        character.addIncrease(15d);
//        character.addDescription("魔女2");
        character.setSuit(character.getSuit()+"魔女2");
        return character;
    }

    @Override
    public Character setEffect4Piece(Character character) {
        character.addIncrease(-15d);
        character.addIncrease(15*1.5*times);
        character.setSuit("魔女4叠加"+times+"次");
        character.setReactionIncrease(character.getReactionIncrease()+0.15);
        return character;
    }
}
